package design_pattern.factory_abstract;

/**抽象工厂*/
public class test {
	public static void main(String[] args) {
        Factory factory = new FactoryA();
        Product a = factory.create();
        a.say();
        ProductProperty aP = factory.createProductProperty();
        aP.say();
        
        Factory factoryB = new FactoryB();
        factoryB.create().say();
        factoryB.createProductProperty().say();
	}
}
